Computer and Modernization ›› 2011, Vol. 193 ›› Issue (9): 165-167,.doi: 10.3969/j.issn.1006-2475.2011.09.044

• 应用与开发 • Previous Articles     Next Articles

Program of Race Between Rabbit and Tortoise Based on Java Multi-thread Mechanism

YANG Hua, ZHOU Jing   

  1. Department of Computer, Sichuan Vocational and Technical College of Communication, Chengdu 611130, China
  • Received:2011-05-09 Revised:1900-01-01 Online:2011-09-22 Published:2011-09-22

Abstract: Support multithreading mechanism is a very important characteristic of Java programming language, this article focus on introduces the basic concept and the advantage and disadvantage based on the thread and based on the multi-thread mechanism, as well as multi-thread definition method. Through the program of race between rabbit and tortoise further introduces the realization based on the Java multi-thread mechanism’s application.

Key words: multiple-thread, thread synchronization, wake up, concurrent

CLC Number: